/* Modern KMH Group Company Ltd. Styles */
/* Updated with visual impact and asymmetrical layout */

/* Color palette */
:root {
  --primary-blue: #2563eb;
  --secondary-blue: #3b82f6;
  --accent-blue: #529abb;
  --dark-blue: #1e40af;
  --light-blue: #dbeafe;
  --dark-gray: #1f2937;
  --light-gray: #f3f4f6;
  --white: #ffffff;
  --black: #000000;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-blue);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--dark-blue);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: white;
  box-shadow: 0 4px 14px rgba(82, 154, 187, 0.4);
}

.btn-primary:hover {
  background-color: var(--dark-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.5);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-blue);
  border: 2px solid var(--accent-blue);
}

.btn-secondary:hover {
  background-color: var(--accent-blue);
  color: white;
}

/* Header and Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 30px;
}

.nav-menu a {
  color: var(--dark-gray);
  font-weight: 500;
  position: relative;
}

.nav-menu a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-blue);
  transition: width 0.3s ease;
}

.nav-menu a:hover:after {
  width: 100%;
}

/* Hero Section */
#intro {
  height: 100vh;
  min-height: 700px;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#intro:before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(82, 154, 187, 0.1) 0%, transparent 70%);
  transform: rotate(30deg);
  z-index: 0;
}

#intro .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.intro-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding-right: 50px;
}

.intro-text {
  color: var(--dark-gray);
  text-align: left;
}

.intro-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--dark-blue);
  line-height: 1.1;
}

.intro-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--dark-gray);
}

.intro-text span {
  font-weight: 600;
  color: var(--accent-blue);
  font-size: 1.4rem;
}

.logo-container {
  position: relative;
  width: 35%;
  max-width: 400px;
  z-index: 3;
}

.logo-container img {
  width: 100%;
  height: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

/* Asymmetrical section styling */
.asymmetrical-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.asymmetrical-section:nth-child(even) {
  background-color: var(--light-gray);
}

.asymmetrical-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.asymmetrical-content.reverse {
  flex-direction: row-reverse;
}

.asymmetrical-text {
  flex: 1;
  padding: 40px;
}

.asymmetrical-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.asymmetrical-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Services Section */
#services {
  padding: 100px 0;
  background: linear-gradient(to bottom, #f8fafc, #e2e8f0);
}

.section-heading {
  text-align: center;
  margin-bottom: 70px;
}

.section-heading h2 {
  font-size: 2.5rem;
  color: var(--dark-blue);
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.section-heading h2:after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: var(--accent-blue);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-heading p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--dark-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15);
}

.service-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--accent-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover:before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--accent-blue);
}

.service-card h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-blue);
}

.service-card p {
  color: #6b7280;
  margin-bottom: 25px;
}

/* About/Accessories Section */
#about {
  padding: 100px 0;
}

.accessories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.accessory-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.accessory-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15);
}

.accessory-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.accessory-content {
  padding: 25px;
  text-align: center;
}

.accessory-content h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--dark-blue);
}

.accessory-content p {
  color: #6b7280;
  font-size: 0.95rem;
}

/* Spacer Section */
.spacer-section {
  padding: 150px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  color: white;
  position: relative;
  overflow: hidden;
}

.spacer-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.spacer-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
}

.spacer-content p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Contact Section */
#contact {
  padding: 100px 0;
  background-color: white;
}

.contact-container {
  display: flex;
  gap: 60px;
  align-items: center;
}

.contact-info {
  flex: 1;
}

.contact-info h5 {
  font-size: 1.3rem;
  color: var(--dark-blue);
  margin-bottom: 20px;
}

.contact-details p {
  margin-bottom: 15px;
  color: #4b5563;
}

.contact-details strong {
  color: var(--dark-gray);
}

/* Footer */
footer {
  background: var(--dark-gray);
  color: white;
  padding: 60px 0 30px;
  text-align: center;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto 30px;
}

.footer-content p {
  color: #d1d5db;
  margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .asymmetrical-content {
    flex-direction: column;
    text-align: center;
  }
  
  .asymmetrical-content.reverse {
    flex-direction: column;
  }
  
  .asymmetrical-text {
    padding: 30px;
  }
  
  .logo-container {
    position: static;
    transform: none;
    width: 80%;
    max-width: 300px;
    margin: 40px auto 0;
  }
  
  .contact-container {
    flex-direction: column;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .nav-menu {
    display: none;
  }
  
  .intro-text h1 {
    font-size: 2.5rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .spacer-content h2 {
    font-size: 2.2rem;
  }
  
  .spacer-content p {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }
  
  .intro-content {
    padding-left: 20px;
  }
  
  .asymmetrical-text {
    padding: 20px;
  }
  
  .service-card {
    padding: 30px 20px;
  }
}

/* Animation classes */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Button animations */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(82, 154, 187, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(82, 154, 187, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(82, 154, 187, 0);
  }
}

.btn-animated {
  animation: pulse 2s infinite;
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
  #intro {
    padding-top: 80px; /* Account for fixed header */
    height: auto;
    min-height: 80vh;
  }
  
  .intro-content {
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
  }
  
  .intro-text {
    text-align: center;
  }
  
  .logo-container {
    margin: 30px auto;
    width: 90%;
  }
  
  .section-heading {
    padding: 0 15px;
  }
  
  .services-grid,
  .accessories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-card,
  .accessory-card {
    margin: 0 10px; /* Prevent touching edges on mobile */
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 10px 15px -5px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu li {
    margin: 10px 0;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.5rem; }
  
  .intro-text h1 {
    font-size: 2rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .asymmetrical-section {
    padding: 80px 0;
  }
  
  .spacer-section {
    padding: 100px 0;
  }
  
  .spacer-content h2 {
    font-size: 1.8rem;
  }
}